package com.leesche.zcsp.node.web.service.impl;

import com.leesche.zcsp.node.web.dao.PubDevConfigParamDao;
import com.leesche.zcsp.node.web.dao.PubDevSetParamDao;
import com.leesche.zcsp.node.web.model.PubDevSetParam;
import com.leesche.zcsp.node.web.model.PubDevSetParamCriteria;
import com.leesche.zcsp.node.web.service.BaseService;
import com.leesche.zcsp.node.web.service.PubDevSetParamService;
import com.leesche.zcsp.node.web.service.impl.data.read.PubDevSetParamDto;
import com.leesche.zcsp.node.web.service.impl.data.read.QueryPubDevSetParamCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * Created by Administrator on 2017-01-05.
 */
@Service
@Transactional
public class PubDevSetParamServiceImpl extends BaseServiceImpl<PubDevSetParam, PubDevSetParamCriteria, PubDevSetParamDto, QueryPubDevSetParamCondition, Long>
        implements PubDevSetParamService {


    @Autowired
    private PubDevSetParamDao pubDevSetParamDao;

    @Autowired
    public void setBaseDao(PubDevSetParamDao pubDevSetParamDao) {

        super.setBaseDao(pubDevSetParamDao);
    }

    @Override
    public PubDevSetParamDto selectByCondition(QueryPubDevSetParamCondition condition) {
        return pubDevSetParamDao.selectByCondition(condition);
    }

    @Override
    public int updateSelectiveByCondition(Map map) {
        return pubDevSetParamDao.updateSelectiveByCondition(map);
    }
}
